package com.dmap.admin.po;

import java.io.Serializable;

public class Department implements Serializable {
    /**
     * 主键id
     * 表字段 : department.id
     */
    private Long id;

    /**
     * 部门编号(目前未用到)
     * 表字段 : department.number
     */
    private String number;

    /**
     * 
     * 表字段 : department.name
     */
    private String name;

    /**
     * 
     * 表字段 : department.company_id
     */
    private Long companyId;

    /**
     * 
     * 表字段 : department.company_name
     */
    private String companyName;

    /**
     * 公司类型：1.总公司， 2分公司
     * 表字段 : department.company_type
     */
    private Integer companyType;

    /**
     * 该条记录是由谁创建的
     * 表字段 : department.creator_id
     */
    private Long creatorId;

    /**
     * 最后编辑者id
     * 表字段 : department.editor_id
     */
    private Long editorId;

    /**
     * 创建者账号
     * 表字段 : department.creator_account
     */
    private String creatorAccount;

    /**
     * 最后更新者账号
     * 表字段 : department.editor_account
     */
    private String editorAccount;

    /**
     * 职能描述
     * 表字段 : department.description
     */
    private String description;

    /**
     *  状态：1正常，2禁用
     * 表字段 : department.status
     */
    private Integer status;

    /**
     * 创建时间
     * 表字段 : department.create_time
     */
    private Long createTime;

    /**
     * 最后更新时间
     * 表字段 : department.update_time
     */
    private Long updateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table department
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table department
     *
     * @mbggenerated
     */
    public Department(Long id, String number, String name, Long companyId, String companyName, Integer companyType, Long creatorId, Long editorId, String creatorAccount, String editorAccount, String description, Integer status, Long createTime, Long updateTime) {
        this.id = id;
        this.number = number;
        this.name = name;
        this.companyId = companyId;
        this.companyName = companyName;
        this.companyType = companyType;
        this.creatorId = creatorId;
        this.editorId = editorId;
        this.creatorAccount = creatorAccount;
        this.editorAccount = editorAccount;
        this.description = description;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table department
     *
     * @mbggenerated
     */
    public Department() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.id
     *
     * @return the value of department.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.id
     *
     * @param id the value for department.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.number
     *
     * @return the value of department.number
     *
     * @mbggenerated
     */
    public String getNumber() {
        return number;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.number
     *
     * @param number the value for department.number
     *
     * @mbggenerated
     */
    public void setNumber(String number) {
        this.number = number == null ? null : number.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.name
     *
     * @return the value of department.name
     *
     * @mbggenerated
     */
    public String getName() {
        return name;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.name
     *
     * @param name the value for department.name
     *
     * @mbggenerated
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.company_id
     *
     * @return the value of department.company_id
     *
     * @mbggenerated
     */
    public Long getCompanyId() {
        return companyId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.company_id
     *
     * @param companyId the value for department.company_id
     *
     * @mbggenerated
     */
    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.company_name
     *
     * @return the value of department.company_name
     *
     * @mbggenerated
     */
    public String getCompanyName() {
        return companyName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.company_name
     *
     * @param companyName the value for department.company_name
     *
     * @mbggenerated
     */
    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.company_type
     *
     * @return the value of department.company_type
     *
     * @mbggenerated
     */
    public Integer getCompanyType() {
        return companyType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.company_type
     *
     * @param companyType the value for department.company_type
     *
     * @mbggenerated
     */
    public void setCompanyType(Integer companyType) {
        this.companyType = companyType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.creator_id
     *
     * @return the value of department.creator_id
     *
     * @mbggenerated
     */
    public Long getCreatorId() {
        return creatorId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.creator_id
     *
     * @param creatorId the value for department.creator_id
     *
     * @mbggenerated
     */
    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.editor_id
     *
     * @return the value of department.editor_id
     *
     * @mbggenerated
     */
    public Long getEditorId() {
        return editorId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.editor_id
     *
     * @param editorId the value for department.editor_id
     *
     * @mbggenerated
     */
    public void setEditorId(Long editorId) {
        this.editorId = editorId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.creator_account
     *
     * @return the value of department.creator_account
     *
     * @mbggenerated
     */
    public String getCreatorAccount() {
        return creatorAccount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.creator_account
     *
     * @param creatorAccount the value for department.creator_account
     *
     * @mbggenerated
     */
    public void setCreatorAccount(String creatorAccount) {
        this.creatorAccount = creatorAccount == null ? null : creatorAccount.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.editor_account
     *
     * @return the value of department.editor_account
     *
     * @mbggenerated
     */
    public String getEditorAccount() {
        return editorAccount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.editor_account
     *
     * @param editorAccount the value for department.editor_account
     *
     * @mbggenerated
     */
    public void setEditorAccount(String editorAccount) {
        this.editorAccount = editorAccount == null ? null : editorAccount.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.description
     *
     * @return the value of department.description
     *
     * @mbggenerated
     */
    public String getDescription() {
        return description;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.description
     *
     * @param description the value for department.description
     *
     * @mbggenerated
     */
    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.status
     *
     * @return the value of department.status
     *
     * @mbggenerated
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.status
     *
     * @param status the value for department.status
     *
     * @mbggenerated
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.create_time
     *
     * @return the value of department.create_time
     *
     * @mbggenerated
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.create_time
     *
     * @param createTime the value for department.create_time
     *
     * @mbggenerated
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column department.update_time
     *
     * @return the value of department.update_time
     *
     * @mbggenerated
     */
    public Long getUpdateTime() {
        return updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column department.update_time
     *
     * @param updateTime the value for department.update_time
     *
     * @mbggenerated
     */
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table department
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", number=").append(number);
        sb.append(", name=").append(name);
        sb.append(", companyId=").append(companyId);
        sb.append(", companyName=").append(companyName);
        sb.append(", companyType=").append(companyType);
        sb.append(", creatorId=").append(creatorId);
        sb.append(", editorId=").append(editorId);
        sb.append(", creatorAccount=").append(creatorAccount);
        sb.append(", editorAccount=").append(editorAccount);
        sb.append(", description=").append(description);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append("]");
        return sb.toString();
    }
}